package net.hn.hnms.biz.project.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper=false)
@Table(name = "mechanical_ledger", schema = "xmgl", catalog = "huaneng-manage")
public class MechanicalLedger extends BaseModel implements Serializable {



    @ApiModelProperty(value = "机械设备台账编号")
    @TableField(value = "mechanical_id", fill = FieldFill.INSERT)
    @TableId(type = IdType.ASSIGN_UUID)
    private String mechanicalId;

    @ApiModelProperty(value = "机械姓名")
    private String mechanicalName;

    @ApiModelProperty(value = "机械编号")
    private String mechanicalCode;

    @ApiModelProperty(value = "项目ID")
    private String projectId;

    @ApiModelProperty(value = "描述")
    private String remark;

    @ApiModelProperty(value = "进场日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date entryTime;

    @ApiModelProperty(value = "出场日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date departureTime;


}
